<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-4">
		<h1 class="page-title txt-color-blueDark"><i class="fa-fw fa fa-group"></i> {:W('Nav/navTop')}
		</h1>
	</div>
	</div>
<!-- row -->
				<div class="row">

					<div class="col-sm-12">

						<div class="well">
							<form action="{:U('Role/roleAdd')}" id="role-form" role="form" method="post" class="smart-form">
							<fieldset>		
							<div class="row">			
								<section class="col col-6">		
									<label class="label">{:L('role_name')}</label>
										<label class="input">
										<input type="text" name="name" >
										<b class="tooltip tooltip-bottom-left">{:L('role_name_tip')}</b>
										</label>
									</section>
							</div>
									
							<div class="row">			
									<section class="col col-6">
									<label class="label">{:L('role_enname')}</label>
										<label class="input">
										<input type="text" name="en_name">
										<b class="tooltip tooltip-bottom-left">{:L('role_enname_tip')}</b>
										</label>
									</section>
							</div>
							</fieldset>

							<fieldset>
							<div class="row">			
									<section class="col col-6">
									<label class="label">{:L('role_description')}</label>
										<label class="textarea">
										<textarea rows="3" name="description"></textarea>
										<b class="tooltip tooltip-bottom-left">{:L('role_description_tip')}</b>
										</label>
									</section>
							</div>
							</fieldset>
							
						
							<footer>
								<section class="col col-6">
								<input type="hidden" name="dosubmit" value='1'/>
								<button type="submit" class="btn btn-primary">
									{:L('cms_submit')}
								</button>
								</section>	
								</footer>
							</form>
							</div>
					</div>
				</div>
			
				<!-- end row -->
<script>
$(document).ready(function() {
	
	$('#role-form').ajaxForm(function(data) { 
		if(data.status==200){
       	 	showhidetip(data.msg,2);
       	 window.location.href="/#/index.php?m=admin&c=role&a=index";return false;
       	}else if(data){
       		showhidetip(data.msg,2);return false;
       	}else{
       		showhidetip("{:L('cms_other_error')}",2);return false;
       	}
	});
});
</script>
